package inet.app.vod.object;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

public class ResultJsonModel {

	@SerializedName("NAME")
	private String nameRequest;

	private String error;

	private Object result;

	public String getNameRequest() {
		return nameRequest;
	}

	public void setNameRequest(String nameRequest) {
		this.nameRequest = nameRequest;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}
	
	public boolean hasError() {
		return !TextUtils.isEmpty(error);
	}

	@Override
	public String toString() {
		return "ResultJsonModel [nameRequest=" + nameRequest + ", error="
				+ error + ", result=" + result + "]";
	}

}
